package b.sj.pojo;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by Administrator on 2017-7-5 0005.
 */
@Entity
@Table(name = "SJ_NSR", schema = "JCXT", catalog = "")
public class SjNsrEntity {
    private String nsrsbh;
    private String nsrmc;
    private String jcjmc;

    @Basic
    @Column(name = "NSRSBH", nullable = true, length = 20)
    public String getNsrsbh() {
        return nsrsbh;
    }

    public void setNsrsbh(String nsrsbh) {
        this.nsrsbh = nsrsbh;
    }

    @Basic
    @Column(name = "NSRMC", nullable = true, length = 20)
    public String getNsrmc() {
        return nsrmc;
    }

    public void setNsrmc(String nsrmc) {
        this.nsrmc = nsrmc;
    }

    @Basic
    @Column(name = "JCJMC", nullable = true, length = 30)
    public String getJcjmc() {
        return jcjmc;
    }

    public void setJcjmc(String jcjmc) {
        this.jcjmc = jcjmc;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SjNsrEntity that = (SjNsrEntity) o;

        if (nsrsbh != null ? !nsrsbh.equals(that.nsrsbh) : that.nsrsbh != null) return false;
        if (nsrmc != null ? !nsrmc.equals(that.nsrmc) : that.nsrmc != null) return false;
        if (jcjmc != null ? !jcjmc.equals(that.jcjmc) : that.jcjmc != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = nsrsbh != null ? nsrsbh.hashCode() : 0;
        result = 31 * result + (nsrmc != null ? nsrmc.hashCode() : 0);
        result = 31 * result + (jcjmc != null ? jcjmc.hashCode() : 0);
        return result;
    }
}
